package com.mallcai.bigdata.ladon.service.report.impl.handler.support.rule;

/**
 * @author feixy
 * @version 1.0
 * @date 2019-07-20 18:57
 */
public class ContainsRuleOperator extends AbstractStringRuleOperator {

    private static final String[] COMMANDS = new String[]{"contains"};

    @Override
    protected boolean innerTest(String obj1, String obj2) {
        return obj1.contains(obj2);
    }

    @Override
    public String[] getCommands() {
        return COMMANDS;
    }
}
